package com.learn.project2.controller.wx.home;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * \* Author: Valley
 * \* Date: 2022/1/11
 * \* Time: 23:29
 * \* Description:
 */

@NoArgsConstructor
@Data
public class HomePojo {

    private List<NewGoodsListBean> newGoodsList;
    private List<CouponListBean> couponList;
    private List<ChannelBean> channel;
    private List<?> grouponList;
    private List<BannerBean> banner;
    private List<BrandListBean> brandList;
    private List<HotGoodsListBean> hotGoodsList;
    private List<TopicListBean> topicList;
    private List<FloorGoodsListBean> floorGoodsList;

    @NoArgsConstructor
    @Data
    public static class NewGoodsListBean {
        /**
         * id : 1181018
         * name : test22223
         * brief : 1111
         * picUrl : http://182.92.235.201:8083/wx/storage/fetch/tgfu4h2q9wywu5c9lvss.jpg
         * isNew : true
         * isHot : true
         * counterPrice : 111
         * retailPrice : 1
         */

        private int id;
        private String name;
        private String brief;
        private String picUrl;
        private boolean isNew;
        private boolean isHot;
        private int counterPrice;
        private int retailPrice;
    }

    @NoArgsConstructor
    @Data
    public static class CouponListBean {
        /**
         * id : 89
         * name : ceshi
         * desc :
         * tag :
         * discount : 20
         * min : 100
         * days : 10
         */

        private int id;
        private String name;
        private String desc;
        private String tag;
        private int discount;
        private int min;
        private int days;
    }

    @NoArgsConstructor
    @Data
    public static class ChannelBean {
        /**
         * id : 1005001
         * name : 餐厨
         * iconUrl : http://yanxuan.nosdn.127.net/ad8b00d084cb7d0958998edb5fee9c0a.png
         */

        private int id;
        private String name;
        private String iconUrl;
    }

    @NoArgsConstructor
    @Data
    public static class BannerBean {
        /**
         * id : 2
         * name : 活动 美食节
         * link :
         * url : http://yanxuan.nosdn.127.net/bff2e49136fcef1fd829f5036e07f116.jpg
         * position : 1
         * content : 活动 美食节
         * enabled : true
         * addTime : 2018-02-01 00:00:00
         * updateTime : 2018-02-01 00:00:00
         * deleted : false
         */

        private int id;
        private String name;
        private String link;
        private String url;
        private int position;
        private String content;
        private boolean enabled;
        private String addTime;
        private String updateTime;
        private boolean deleted;
    }

    @NoArgsConstructor
    @Data
    public static class BrandListBean {
        /**
         * id : 1001000
         * name : MUJI制造商
         * desc : 严选精选了MUJI制造商和生产原料，
         用几乎零利润的价格，剔除品牌溢价，
         让用户享受原品牌的品质生活。
         * picUrl : http://yanxuan.nosdn.127.net/1541445967645114dd75f6b0edc4762d.png
         * floorPrice : 12.9
         */

        private int id;
        private String name;
        private String desc;
        private String picUrl;
        private double floorPrice;
    }

    @NoArgsConstructor
    @Data
    public static class HotGoodsListBean {
        /**
         * id : 1181024
         * name : 杰宝
         * brief : 好看的杰宝
         * picUrl : http://182.92.235.201:8083/wx/storage/fetch/1fiupyu9hpeph4k1ljkm.jpeg
         * isNew : false
         * isHot : true
         * counterPrice : 10000
         * retailPrice : 10000
         */

        private int id;
        private String name;
        private String brief;
        private String picUrl;
        private boolean isNew;
        private boolean isHot;
        private int counterPrice;
        private int retailPrice;
    }

    @NoArgsConstructor
    @Data
    public static class TopicListBean {
        /**
         * id : 274
         * title : 没有软木拖，235436576907463
         * subtitle : 而且我热天然后突然为其提供的
         * price : 4.5555555E7
         * readCount : 46.4k
         * picUrl : https://yanxuan.nosdn.127.net/14925822213780237.jpg
         */

        private int id;
        private String title;
        private String subtitle;
        private double price;
        private String readCount;
        private String picUrl;
    }

    @NoArgsConstructor
    @Data
    public static class FloorGoodsListBean {
        /**
         * name : 餐厨
         * goodsList : [{"id":1023003,"name":"100年传世珐琅锅 全家系列","brief":"特质铸铁，大容量全家共享","picUrl":"http://yanxuan.nosdn.127.net/c39d54c06a71b4b61b6092a0d31f2335.png","isNew":false,"isHot":false,"counterPrice":418,"retailPrice":398},{"id":1051001,"name":"Carat钻石煎锅28cm","brief":"耐磨涂层，导热迅速","picUrl":"http://yanxuan.nosdn.127.net/f53ed57d9e23fda7e24dfd0e0a50c5d1.png","isNew":false,"isHot":false,"counterPrice":179,"retailPrice":159},{"id":1051002,"name":"Carat钻石汤锅24cm","brief":"安全涂层，锁热保温","picUrl":"http://yanxuan.nosdn.127.net/56f4b4753392d27c0c2ccceeb579ed6f.png","isNew":false,"isHot":false,"counterPrice":248,"retailPrice":228},{"id":1051003,"name":"Carat钻石奶锅18cm","brief":"轻便节能，易于清洗","picUrl":"http://yanxuan.nosdn.127.net/6a54ccc389afb2459b163245bbb2c978.png","isNew":false,"isHot":false,"counterPrice":168,"retailPrice":148},{"id":1038004,"name":"100年传世珐琅锅 马卡龙系列","brief":"均匀导热，释放美味","picUrl":"http://yanxuan.nosdn.127.net/4d3d3eaeb872860539d7faa59f9f84e9.png","isNew":false,"isHot":false,"counterPrice":379,"retailPrice":359},{"id":1166008,"name":"Carat钻石 不粘厨具组合","brief":"钻石涂层，不粘锅锅具组","picUrl":"http://yanxuan.nosdn.127.net/615a16e899e01efb780c488df4233f48.png","isNew":true,"isHot":false,"counterPrice":479,"retailPrice":459},{"id":1025005,"name":"100年传世珐琅锅","brief":"特质铸铁，锁热节能","picUrl":"http://yanxuan.nosdn.127.net/49e26f00ca4d0ce00f9960d22c936738.png","isNew":false,"isHot":false,"counterPrice":288,"retailPrice":268}]
         * id : 1005001
         */

        private String name;
        private int id;
        private List<GoodsListBean> goodsList;

        @NoArgsConstructor
        @Data
        public static class GoodsListBean {
            /**
             * id : 1023003
             * name : 100年传世珐琅锅 全家系列
             * brief : 特质铸铁，大容量全家共享
             * picUrl : http://yanxuan.nosdn.127.net/c39d54c06a71b4b61b6092a0d31f2335.png
             * isNew : false
             * isHot : false
             * counterPrice : 418
             * retailPrice : 398
             */

            private int id;
            private String name;
            private String brief;
            private String picUrl;
            private boolean isNew;
            private boolean isHot;
            private int counterPrice;
            private int retailPrice;
        }
    }
}
